// #ifndef VUE3
import Vue from 'vue'
import App from './App'

Vue.config.productionTip = false

App.mpType = 'app'

const app = new Vue({
	...App
})
app.$mount()
// #endif





// #ifdef VUE3
import {
	createSSRApp
} from 'vue'
// import Pinia from "@/store";
import App from './App.vue'
// import { createPinia, PiniaVuePlugin } from 'pinia'
import {
	createPinia
} from 'pinia'

// pinia持久化插件
import piniaPluginPersistedstate from 'pinia-plugin-persistedstate'

// 创建pinia实例
const Pinia = createPinia()
// 使用持久化插件
Pinia.use(piniaPluginPersistedstate)

export function createApp() {
	const app = createSSRApp(App)
	// const pinia = createPinia()
	app.use(Pinia)
	// app.use(PiniaVuePlugin)
	// app.use(pinia)
	return {
		app
	}
}
// #endif